/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assigment.AbstractFactoryMethod;

/**
 *
 * @author user
 */
public class ReptileFactory extends SpeciesFactory {

    @Override
    public Animal getAnimal(String type) {
       if("Snake".equals(type))
        {
            return new Snake();
        }else{return new Tyrannosaurus();}
    }
    
}
